<div id="left">
                   <?php if($admin->isAdminLoggedIn()){ ?>
			<div class="box submenu">
				<div class="content">
					<ul>
						<li>
							<a href="#">Site Configuration</a>
							<ul>
								<li><a href="general_settings.php">General Settings</a></li>
								<li><a href="change_logo.php">Change Logo</a></li>
								<li><a href="site_statistics.php">Site Statistics</a></li>
								<li><a href="earning_percentages.php">Set Earning Percentages</a></li>
								<li><a href="mass_email.php">Send Mass Email</a></li>
							</ul>
						</li>
					        <li>
					                <a href="#">Gateway Settings</a>
							<ul>
								<li><a href="setup_gateway.php">Setup Gateway</a></li>
							</ul>
						</li>
						<li>
					                <a href="#">File Management</a>
							<ul>
								<li><a href="view_files.php">View Files</a></li>
							</ul>
						</li>
						<li>
					                <a href="#">Payment Area</a>
							<ul>
								<li><a href="pending_payments.php">Pending Payments</a></li>
							</ul>
						</li>
						<li>
					                <a href="#">User Management</a>
							<ul>
								<li><a href="view_users.php">View Site Users</a></li>
								<li><a href="add_user.php">Add New User</a></li>
							</ul>
						</li>
						<li>
					                <a href="#">CMS</a>
							<ul>
								<li><a href="cms.php">Manage Pages</a></li>
							</ul>
						</li>
					</ul>
				</div>
			</div>
			<?php } ?>
		</div>